import sys
sys.path.append("..")

import regresult
import unittest

class testRegResult(unittest.TestCase):
    """
    """
    def testreadsum(self):
        rdic = regresult.getRegResultSum("regresult.txt")
        self.assertEqual(rdic["CF"],0.7575)
        self.assertEqual(rdic["MAE"],0.6688)
        self.assertEqual(rdic["RMSE"],0.835)

if __name__ == "__main__":
    unittest.main()
